/**
       Date日期时间对象
          => 处理日期时间
          => var date = new Date()
                 当前日期时间，以中国标准时间格式显示 
                  2024-11-19T07:21:25.077Z
          =>创建指定时间时间
              new Date('2023-10-1')

          =>常用方法
             
 */

var test1 = function () {
	var date = new Date()
	console.log(date) // 2024-11-19T07:21:25.077Z
}

var test2 = function(){
    var date = new Date('2023-10-01')
    console.log(date)
}

var test3 = function(){
    var date = new Date()
    var year = date.getFullYear()
    var month = date.getMonth()+1
    var data = date.getDate()
    var hours = date.getHours()
    var minu = date.getMinutes()
    var seconds = date.getSeconds()
    
    console.log('year :',year,' month ',month, ' day ',data, ' hours ',hours,' minu :',minu , " seconds ",seconds);

}

test3()
